﻿@model ComicTracker.Models.Issue
           
@{
    ViewBag.Title = "Details";
}

<h2>Details</h2>

<fieldset>
    <legend>Series</legend>

    <div class="display-label">Series</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Series.Name)
    </div>

    <div class="display-label">Issue Number</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.IssueNumber)
    </div>

    <div class="display-label">Variant</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Variant)
    </div>

    <div class="display-label">Edition</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Edition)
    </div>

    <div class="display-label">Title</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Title)
    </div>

    <div class="display-label">Subtitle</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Subtitle)
    </div>

    <div class="display-label">Release Date</div>
    <div class="display-field">
        @{string dateStr = Model.ReleaseDate.ToShortDateString();}
        @dateStr
    </div>

    <div class="display-label">Number of Pages</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.NumPages)
    </div>

    <div class="display-label">Cover Price</div>
    <div class="display-field">
        $@Html.DisplayFor(model => model.CoverPrice)
    </div>
</fieldset>

<p>
    @Html.ActionLink("Edit", "Edit", "Issue", new { id = @Model.ID }, null)
    <a href="@ViewBag.LastPage">Back to List</a>
</p>